package com.meituan.verintreport.db.dto;

import java.util.Date;

public class AnswersDto {
    private Integer answerId;

    private String answerCaption;

    private Integer formComponentKey;

    private Integer orderId;

    private Date creationDate;

    public Integer getAnswerId() {
        return answerId;
    }

    public void setAnswerId(Integer answerId) {
        this.answerId = answerId;
    }

    public String getAnswerCaption() {
        return answerCaption;
    }

    public void setAnswerCaption(String answerCaption) {
        this.answerCaption = answerCaption == null ? null : answerCaption.trim();
    }

    public Integer getFormComponentKey() {
        return formComponentKey;
    }

    public void setFormComponentKey(Integer formComponentKey) {
        this.formComponentKey = formComponentKey;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public Date getCreationDate() {
        return creationDate;
    }

    public void setCreationDate(Date creationDate) {
        this.creationDate = creationDate;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", answerId=").append(answerId);
        sb.append(", answerCaption=").append(answerCaption);
        sb.append(", formComponentKey=").append(formComponentKey);
        sb.append(", orderId=").append(orderId);
        sb.append(", creationDate=").append(creationDate);
        sb.append("]");
        return sb.toString();
    }
}